<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<link rel="stylesheet" media="screen" href="css/docs.css"/>
<link rel="stylesheet" media="screen" href="lib/jqplot/jquery.jqplot.min.css"/>
<!-- jQplot SETUP -->
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/jqplot/excanvas.js"></script>
<![endif]-->
<script type="text/javascript" src="lib/jqplot/jquery.jqplot.min.js"></script>
<script type="text/javascript" src="lib/jqplot/plugins/jqplot.categoryAxisRenderer.min.js"></script>
<script type="text/javascript" src="lib/jqplot/plugins/jqplot.barRenderer.min.js"></script>
<script type="text/javascript" src="lib/jqplot/plugins/jqplot.highlighter.min.js"></script>
<script type="text/javascript" src="lib/jqplot/plugins/jqplot.dateAxisRenderer.min.js"></script>
<script type="text/javascript" src="lib/jqplot/plugins/jqplot.pointLabels.min.js"></script>
<script type="text/javascript" src="lib/jqplot/plugins/jqplot.pieRenderer.min.js"></script>
<script type="text/javascript" src="lib/jqplot/plugins/jqplot.donutRenderer.min.js"></script>
<script type="text/javascript" src="lib/jqplot/plugins/jqplot.bubbleRenderer.min.js"></script>
<link rel="stylesheet" media="screen" href="lib/datatables/css/vpad.css"/>
<script type="text/javascript" src="lib/datatables/js/jquery.dataTables.js"></script>


<h5>历史审核</h5>
<ul class="clearfix">
    <s:if test="#request.examQuanScoreAuditings != null and #request.examQuanScoreAuditings.size() > 0">
        <s:iterator value="#request.examQuanScoreAuditings" status="sta">
            <li><a class="${sta.index==0 ? "current" :""}" href="javascript:void(0)" onclick="changeTab(this, ${sta.index})">历史审核#<s:property value="#request.sta.index+1"/></a></li>
        </s:iterator>
    </s:if>
    <s:else>
        <li><a class="current" href="#">没有历史记录</a></li>
    </s:else>
</ul>
<section>
    <s:if test="#request.examQuanScoreAuditings != null and #request.examQuanScoreAuditings.size() > 0">
        <s:iterator value="#request.examQuanScoreAuditings" var="ad" status="sta">
            <section style="display: ${sta.index==0 ? "block" :"none"};" class="clearfix wxn" id="section_${sta.index}">
                <%--<h4>2012年3月22日</h4>--%>
                <div class="grid_12 alpha">
                    <h4>
                    <s:if test="#request.ad.create_date != null">
                      <s:date name="#request.ad.create_date" format="yyyy-MM-dd HH:mm:ss" />
                    </s:if>
                    </h4>
                    <hr>
                    <ol class="nostyle">
                        <li>
                            <%--TODO:读审核者(审核时登录用户)--%>
                            <p class="title"> 审核者${ad.id}
                                <button type="reset" class="button" style="float: right">
                                    <span style="background:url(${ctx}/images/img/accept.png)" class="icon">&nbsp;</span>${ad.status.name}
                                </button>
                            </p>
                            <p>${ad.auditContent}</p>
                        </li>
                    </ol>
                </div>
            </section>
        </s:iterator>
    </s:if>
    <s:else>
        <section style="display: none;" class="clearfix">
            <div class="grid_12 alpha">没有历史审核记录</div>
        </section>
    </s:else>
</section>
